<?php
$page->BodyId = 'news';
$page->BodyClass = '';
$page->Section = '';
$page->Title = $page->Wordlets->GetWordlet('page_title');

$page->SetWrapperFile('_wrapper');
?>

<? foreach ( $page->Posts->Values as $news_item ): ?> 
	<div class="news_item">
		<div class="post">
			<h3><a name="news<?=$news_item->Id()?>"><?=$news_item->Title()?> - <?=date('M jS, o', strtotime($news_item->Created()))?></a></h3>
			<div class="cms">
				<?=$news_item->Body()?>
			</div>
		</div>
	</div>
<? endforeach; ?>

<div id="pagination_wrapper">
	<? Site::RenderView('modules/_pagination', array('page' => $page->Posts->Pagination())) ?>
</div>